-- GENERATED SPELL FOR [Shattered Hand Neophyte] --


function spell0_19410(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(6742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19410', 30323, 1)
end

function spell1_19410(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(11640,pUnit)
pUnit:RegisterEvent('Sorts_19410', 15000, 1)
end

function spell2_19410(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(11639,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19410', 18000, 1)
end

function spell3_19410(pUnit, Event) --@Soul Burden,n/a--
pUnit:FullCastSpellOnTarget(38879,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19410', 572, 1)
end

function Sorts_19410(pUnit, Event)
local choix_sorts_19410 = math.random(0, 3)
if choix_sorts_19410 == 0 then
pUnit:RegisterEvent('spell0_19410', 1, 1)
end
if choix_sorts_19410 == 1 then
pUnit:RegisterEvent('spell1_19410', 1, 1)
end
if choix_sorts_19410 == 2 then
pUnit:RegisterEvent('spell2_19410', 1, 1)
end
if choix_sorts_19410 == 3 then
pUnit:RegisterEvent('spell3_19410', 1, 1)
end
end

function mob19410_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19410', math.random(1500, 3000), 1)
end

function mob19410_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19410_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19410_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19410, 1, 'mob19410_Action')
RegisterUnitEvent(19410, 2, 'mob19410_Leave')
RegisterUnitEvent(19410, 3, 'mob19410_Kill')
RegisterUnitEvent(19410, 4, 'mob19410_Die')
